home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / develop / develop issue 27 / develop issue 27 code / 3d game controls / source / inits.h < prev    next >
Encoding:
Text File  |  1996-06-29  |  1.6 KB  |  70 lines

  1. //--------------------------------------------------------------------------------------------
  2. //  Init Declarations
  3. //
  4. //      by Philip McBride
  5. //
  6. //--------------------------------------------------------------------------------------------
  7.  
  8.  
  9. //--------------------------------------------------------------------------------------------
  10. // defines
  11. //
  12. #define HiWrd(aLong)    (((aLong) >> 16) & 0xFFFF)
  13. #define LoWrd(aLong)    ((aLong) & 0xFFFF)
  14. #define kMyMenuBar    128
  15.  
  16. //--------------------------------------------------------------------------------------------
  17. // menu id's
  18. //
  19. enum {
  20.     mApple = 128,
  21.     mFile,
  22.     mView
  23. } ;
  24.  
  25. //--------------------------------------------------------------------------------------------
  26. // command id's, Apple menu
  27. //
  28. enum {
  29.     iAbout = 1
  30. } ;
  31.  
  32. //--------------------------------------------------------------------------------------------
  33. // command id's, File menu
  34. //
  35. enum {
  36.     iOpen = 1,
  37.     iUnused1,
  38.     iClose,
  39.     iUnused2,
  40.     iQuit
  41. } ;
  42.  
  43. //--------------------------------------------------------------------------------------------
  44. // command id's, Edit menu
  45. //
  46. enum {
  47.     iWireframe = 1,
  48.     iInteractive
  49. } ;
  50.  
  51. //--------------------------------------------------------------------------------------------
  52. // Alert and About id's
  53. //
  54. enum {
  55.     kMyAboutDialogID = 128,
  56.     kMyStopAlertID = 512
  57. } ;
  58.  
  59. //--------------------------------------------------------------------------------------------
  60. // function prototypes
  61. //
  62. Boolean SupportsAEVT(void);
  63. void     RegisterMyEvents(void);
  64. void     InitAEStuff( void );
  65. void     DeallocateGlobals(void);
  66. void     InitializeGlobals(void);
  67. void     InitializeToolbox(void);
  68. Boolean    myTrapAvailable(short theTrap);
  69. void    MyAdjustMenus(void);
  70.